from django.conf.urls.defaults import patterns, include, url
from mysite.views import current_datetime, mylogin, mylogout
# from django.contrib.auth.views import login, logout # <- ZACHAREE YOU IDIOT :D
# Also, I should have remembered that you mustn't call a function login or logout,
# or weird things happen :@ So I changed the views in mysite to be mylogin and
# mylogout so that they don't clash.

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    (r'^time/$', current_datetime),
    (r'^accounts/mylogin/$', mylogin),
    (r'^accounts/mylogout/$', mylogout),
    # Examples:
    # url(r'^$', 'white.views.home', name='home'),
    # url(r'^white/', include('white.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)
